package com.qf.enums;

import lombok.Getter;

@Getter
public enum ExceptionInfoEnum {

    PARAM_ERROR(1,"参数不合法"),
    CAPTCHA_ERROR(5,"验证码不正确"),
    USER_REGISTER_ERROR(31,"注册账号失败"),
    USER_USERNAME_ERROR(32,"用户名不存在"),
    USER_PASSWORD_ERROR(33,"密码不正确"),
    ITEM_ADD_ERROR(61,"商品信息添加失败"),
    PIC_GREATER(62,"商品图片过大"),
    PIC_NAMETYPE_ERROR(63,"图片类型不正确"),
    PIC_BREAK(64,"图片已损毁"),
    ITEM_FIND_ERROR(71,"查询商品信息失败"),
    ITEM_UPDATE_ERROR(81,"修改商品信息失败"),
    ITEM_DLE_ERROR(91,"删除商品信息失败");

    private Integer code;

    private String msg;

    ExceptionInfoEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
